package com.alibaba.bean;

import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.List;

public class DailyListData<T> {

    private int forumId;
    private int fansId;
    private String content;
    private String likeNum;
    private String replyNum;
    private int forumLike;
    private boolean follow;
    private boolean like;
    private String imgList;

    private String postTimeStr;


    private Date now = new Date();
    private SimpleDateFormat dateFormate = new SimpleDateFormat("yyyy-MM-dd");

    public String getPostTimeStr() {
        int rand = (int)(Math.random()*10000)*60*1000;
        Date date = new Date(now.getTime() - rand);
        postTimeStr = dateFormate.format(date);
        return postTimeStr;
    }

    public void setPostTimeStr(String postTimeStr) {
        this.postTimeStr = postTimeStr;
    }

    private T authorInfo;

    private List<T> replyList;

    public int getForumId() {
        return forumId;
    }

    public void setForumId(int forumId) {
        this.forumId = forumId;
    }

    public int getFansId() {
        return fansId;
    }

    public void setFansId(int fansId) {
        this.fansId = fansId;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getLikeNum() {
        return likeNum;
    }

    public void setLikeNum(String likeNum) {
        this.likeNum = likeNum;
    }

    public String getReplyNum() {
        return replyNum;
    }

    public void setReplyNum(String replyNum) {
        this.replyNum = replyNum;
    }

    public int getForumLike() {
        return forumLike;
    }

    public void setForumLike(int forumLike) {
        this.forumLike = forumLike;
    }

    public boolean isFollow() {
        return follow;
    }

    public void setFollow(boolean follow) {
        this.follow = follow;
    }

    public boolean isLike() {
        return like;
    }

    public void setLike(boolean like) {
        this.like = like;
    }

    public String getImgList() {
        return imgList;
    }

    public void setImgList(String imgList) {
        this.imgList = imgList;
    }

    public T getAuthorInfo() {
        return authorInfo;
    }

    public void setAuthorInfo(T authorInfo) {
        this.authorInfo = authorInfo;
    }

    public List<T> getReplyList() {
        return replyList;
    }

    public void setReplyList(List<T> replyList) {
        this.replyList = replyList;
    }
}
